package com.changfang.gold_man.mapper;

import com.changfang.gold_man.entity.Goods;
import org.apache.ibatis.annotations.Mapper;


import java.util.List;
@Mapper
public interface GoodsMapper {
    List<Goods> findAll();
    List<Goods> findId(String user_id);
    void addGoods(String user_id,String goods_name,String goods_msg,Float goods_gold,String goods_img,String goods_deal);
    void deleteGoods(Integer goods_id);
    Goods findGoodsId(Integer goods_id);
    void goodsDeal(Integer goods_id,String goods_deal);
    void updateUserId(Integer goods_id,String user_id);
    void update(Integer goods_id,String user_id,String goods_name,String goods_msg,Float goods_gold);
}
